﻿using RepositoryDefinition;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RepositoryImplementation
{
    public class Repository:IRepository
    {

        public IUserRepository GetUserRepository()
        {
            return new UserRepository();
        }

        public ISectionRepository GetSectionRepository()
        {
            return new SectionRepository();
        }

        public ICategoryRepository GetCategoryRepository()
        {
            return new CategoryRepository();
        }

        public IPostRepository GetPostRepository()
        {
            return new PostRepository();
        }

        public IAnswerRepository GetAnswerRepository()
        {
            return new AnswerRepository();
        }
    }
}
